package com.cykj.controller;


import com.cykj.feign.UserControllerFeign;
import com.cykj.vo.UserVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/order")
public class OrderController {

    @Autowired
    private UserControllerFeign userControllerFeign;

    @RequestMapping("/getOrder")
    public String getOrder(){
        return userControllerFeign.getUser(new UserVO("张三", "18"));
    }
}
